import { ProForm, ProFormText, ProFormDatePicker } from '@ant-design/pro-components'
import { Button } from 'antd'

export default () => {
  const handleSubmit = async (values: any) => {
    console.log('表单数据:', values)
  }

  return (
    <ProForm onFinish={handleSubmit}>
      <ProFormText
        name="name"
        label="姓名"
        placeholder="请输入姓名"
        rules={[{ required: true, message: '姓名是必填项' }]}
      />
      <ProFormDatePicker name="date" label="日期" />
    </ProForm>
  )
}
